<?php
return array(
    /*Browse
    */
    array('/^(?:home\/)?browse(\/.*)$/i','Browse/index', 'args'),
/*
    array('/^(?:home\/)?browse(?:\/(user|group))?\/(week|month)/i', 'Browse/index', 'role,range'),
    array('/^(?:home\/)?browse\/(user|group)/i', 'Browse/index', 'role'),
    array('/^(?:home\/)?browse\/(\d+)\/(\d+)/i','Browse/index','year,month'), 
    array('/^(?:home\/)?browse\/(\d+)/i', 'Browse/index', 'year'),
    array('/^(?:home\/)?browse\/type\/(\d+)/i', 'Browse/index', 'type'),
    array('/^(?:home\/)?browse\/q\/(.+)/i', 'Browse/index', 'q'),
*/

    // event/100
    array('/^(?:home\/)?event\/(\d+)$/i','Event/index','id'),
    // event/100/edit
    array('/^(?:home\/)?event\/(\d+)\/edit$/i','Event/edit','id'),
    array('/^(?:home\/)?event\/(\d+)\/take$/i','Event/take','id'),
    array('/^(?:home\/)?event\/(\d+)\/wish$/i','Event/wish','id'),
    array('/^(?:home\/)?event\/(\d+)\/album\/upload$/i','Album/upload','id', 'type='.AlbumModel::C('TYPE_EVENT')),
    array('/^(?:home\/)?event\/(\d+)\/album$/i','Album/id','id', 'type=1'),
    array('/^(?:home\/)?event\/(\d+)\/topic$/i','Topic/id','id'),
    
    // album/event/100
    array('/^(?:home\/)?album\/(event|group)\/(\d+)$/i','Album/id','type,id'),
    array('/^(?:home\/)?album\/(event|group)\/(\d+)\/upload$/i','Album/upload','type,id'),
    array('/^(?:home\/)?album\/(event|group)\/(\d+)\/del\/(\d+)$/i','Album/del','type,id,img_id'),

    array('/^(?:home\/)?user\/(\d+)\/timeline/i','Timeline/user','uid'),

    //friend
    array('/^(?:home\/)?friend\/add\/(\d+)/i','Friend/add','uid'),
    array('/^(?:home\/)?friend\/del\/(\d+)/i','Friend/del','uid'),
    array('/^(?:home\/)?friend\/rev\/(\d+)/i','Friend/rev','uid'),
    array('/^(?:home\/)?friend\/(\d+)/i','Friend/index','uid'),
    
    //mock
    array('/^(?:home\/)?user\/(\d+)/i','User/index','uid'),

    array('/^(?:home\/)?group\/(\d+)\/timeline/i','Timeline/group','uid'),
    array('/^(?:home\/)?group\/(\d+)/i','Group/id','uid'),

    array('/^(?:home\/)?topic\/(\d+)?$/','Topic/index','uid'),
    
    array('/^Master\/event\/(user|group)/','Master/Event/search','role'),
    array('/^Master\/event\/(\d+)\/lock/','Master/Event/lock','id'),
);
?>

